package com.stations.domain.transmitterEntity;

import lombok.Getter;

/**
 * @author Geordie
 * @version 0.0.1
 * @description TransmitterEnum
 * @since 2023/3/31 11:46
 */
public enum TransmitterResultEnum {
    success(0, "调用成功"),
    parameterError(200001, "参数错误"),
    isNullError(200002, "必填参数为空"),
    rangeError(200003, "参数范围不正确"),
    formatError(200004, "参数格式不正确"),
    insideError(200009, "系统内部异常"),
    signatureError(300001, "签名不正确"),
    jsonError(300002, "解析请求JSON数据异常"),
    codingError(300003, "不支持的请求编码字符集"),
    error(400001, "其他错误");
    @Getter
    private Integer code;
    @Getter
    private String msg;

    TransmitterResultEnum(Integer code, String desc) {
        this.code = code;
        this.msg = desc;
    }
}
